package xy.boot.enable;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import xy.boot.enable.annotaion.EnableUser;


@SpringBootApplication
public class BootEnableApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(BootEnableApplication.class, args);
        Object user = context.getBean("userBean");
        System.out.println(user);
    }

}
